package top.songxs.gmall.rabbit.anno;

import org.springframework.context.annotation.Import;
import top.songxs.gmall.rabbit.config.RabbitMqConfiguration;
import top.songxs.gmall.rabbit.config.RabbitTemplateConfiguration;
import top.songxs.gmall.rabbit.service.impl.RabbitMqBizServiceImpl;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Import(value = {RabbitTemplateConfiguration.class, RabbitMqConfiguration.class, RabbitMqBizServiceImpl.class})
public @interface EnableRabbit {
}
